import request from '@/utils/request'

export function update(data) {
  return request({
    url: '/ss/sys/informationManage/update',
    method: 'post',
    data: data
  })
}

export function updateLive(data) {
  return request({
    url: '/ss/sys/recentLive/update',
    method: 'post',
    data: data
  })
}

export function updateHotGroupData(data) {
  return request({
    url: '/ss/sys/hotGroup/update',
    method: 'post',
    data: data
  })
}

export function updateFineClassData(data) {
  return request({
    url: '/ss/sys/fineClass/update',
    method: 'post',
    data: data
  })
}

export function updateOpenCourseData(data) {
  return request({
    url: '/ss/sys/openCourse/update',
    method: 'post',
    data: data
  })
}

export function updateCategoryCourse1Data(data) {
  return request({
    url: '/ss/sys/categoryCourse/update',
    method: 'post',
    data: data
  })
}

export function updateRecommendTeacherData(data) {
  return request({
    url: '/ss/sys/recommendTeacher/update',
    method: 'post',
    data: data
  })
}

export function updateStudentEvaluationData(data) {
  return request({
    url: '/ss/sys/studentEvaluation/update',
    method: 'post',
    data: data
  })
}

export function getData(code, tenantId) {
  return request({
    url: '/ss/sys/informationManage/get',
    method: 'get',
    params: {code, tenantId}
  })
}

export function getOpenCourseData(code, tenantId) {
  return request({
    url: '/ss/sys/openCourse/get',
    method: 'get',
    params: {code, tenantId}
  })
}

export function getRecentLiveData(code, tenantId) {
  return request({
    url: '/ss/sys/recentLive/get',
    method: 'get',
    params: {code, tenantId}
  })
}

export function getCategoryCourse1Data(code, tenantId) {
  return request({
    url: '/ss/sys/categoryCourse/get',
    method: 'get',
    params: {code, tenantId}
  })
}

export function getFineClassData(code, tenantId) {
  return request({
    url: '/ss/sys/fineClass/get',
    method: 'get',
    params: {code, tenantId}
  })
}

export function getHotGroupData(code, tenantId) {
  return request({
    url: '/ss/sys/hotGroup/get',
    method: 'get',
    params: {code, tenantId}
  })
}

export function getRecommendTeacherData(code, tenantId) {
  return request({
    url: '/ss/sys/recommendTeacher/get',
    method: 'get',
    params: {code, tenantId}
  })
}

export function getStudentEvaluationData(code, tenantId) {
  return request({
    url: '/ss/sys/studentEvaluation/get',
    method: 'get',
    params: {code, tenantId}
  })
}
